import axios from "axios";

const request = axios.create({
  baseURL: "http://127.0.0.1",
  timeout: 0,
});

request.interceptors.request.use(
  (config) => {
    return config;
  },
  (error) => {
    throw Error(error);
  }
);

request.interceptors.response.use((res) => {
  return res.data;
});

export default request;
